package com.hxh.generater.vue.simple.gen;

import com.hxh.entity.Project;
import com.hxh.entity.po.ClassInfo;
import com.hxh.generater.vue.genBase.GenVueBase;

/**
 * @ProjectName: AICode
 * @Package: com.hxh.generater
 * @Author: HXH
 * @Description: 生成vue页面代码
 * @Date: 2023/11/28 15:08
 */
public class GenSimpleVue implements GenVueBase {

    @Override
    public void generationView(Project project, ClassInfo classInfo) throws Exception {
        GenSimpleView.generationByFtlConfig(project, classInfo);
    }

    @Override
    public String generationView(ClassInfo classInfo) throws Exception {
        return GenSimpleView.generationByFtlConfig(null, classInfo);
    }

    @Override
    public void generationApi(Project project, ClassInfo classInfo) throws Exception {
        GenSimpleApi.generationApi(project, classInfo);
    }

    @Override
    public String generationApi(ClassInfo classInfo) throws Exception {
        return GenSimpleApi.generationApi(null, classInfo);
    }

}
